package com.andersen.web.beans;

import org.springframework.stereotype.Component;

/**
 * Created by Georg on 2/19/14.
 */

@Component
public class EmplDataCommandForm {

    private Integer id;

    private String name;

    private String surname;

    private String patronymic;

    private String position;

    private String skype;

    private String phone;

    private String officeId;

    private Boolean discharged;

    private boolean validationError = false;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public String getPatronymic() {
        return patronymic;
    }

    public void setPatronymic(String patronymic) {
        this.patronymic = patronymic;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getSkype() {
        return skype;
    }

    public void setSkype(String skype) {
        this.skype = skype;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getOfficeId() {
        return officeId;
    }

    public void setOfficeId(String officeId) {
        this.officeId = officeId;
    }

    public Boolean getDischarged() {
        return discharged;
    }

    public void setDischarged(Boolean discharged) {
        this.discharged = discharged;
    }

    public boolean isValidationError() {
        return validationError;
    }

    public void setValidationError(boolean validationError) {
        this.validationError = validationError;
    }

    @Override
    public String toString() {
        return "RegisterCommandFormat{" + " id= " + id + " name= " + name +
                ", surname= " + surname + ", patronymic= " + patronymic +
                ", position= " + position + ", skype= " + skype + ", phone= " + phone +
                ", officeId= " + officeId + ", discharged= " + discharged + '}';
    }


}

